using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TwoFivePanel : MonoBehaviour
{
    public TwoFiveItem item;
    public Transform ItemGroup;
    public Text text;
    // Start is called before the first frame update
    void Start()
    {
        for (int i = 0; i < 12; i++)
        {
            var temp = Instantiate(item, ItemGroup);
            temp.gameObject.SetActive(true);
        }
        item.gameObject.SetActive(false);
    }

    // Update is called once per frame
    void Update()
    {
        text.text = $"剩余旅行券: {TwoPanel.Ins.MoveNum}";
    }
}
